<?php
/**
 * @version		$Id: almhoster.php 8 2011-12-23 15:25:34Z netix.mail@gmail.com $
 * @package		ALM Hoster
 * @desription	Web hosting and domain menager for resellers
 * @subpackage	Components
 * @copyright	Copyright (C) 2011 ALM Studio. All rights reserved.
 * @author		ALM Studio
 * @email		info@alm-studio.net
 * @link		http://alm-studio.net
 * @license		Commercial
 */

// No direct access to this file
defined('_JEXEC') or die;

abstract class AlmHosterHelper
{
	public static function addSubmenu($vName) 
	{
		JSubMenuHelper::addEntry(
			JText::_('COM_ALMHOSTER_SUBMENU_ALMHOSTER'),
			'index.php?option=com_almhoster',
			$vName == 'almhoster'
		);
		
		JSubMenuHelper::addEntry(
			JText::_('COM_ALMHOSTER_SUBMENU_ORDERS'),
			'index.php?option=com_almhoster&view=orders',
			$vName == 'orders'
		);
		
		JSubMenuHelper::addEntry(
			JText::_('COM_ALMHOSTER_SUBMENU_INVOICES'),
			'index.php?option=com_almhoster&view=invoices',
			$vName == 'invoices'
		);
		
		JSubMenuHelper::addEntry(
			JText::_('COM_ALMHOSTER_SUBMENU_CLIENTS'),
			'index.php?option=com_almhoster&view=clients',
			$vName == 'clients'
		);
	
		JSubMenuHelper::addEntry(
			JText::_('COM_ALMHOSTER_SUBMENU_PRODUCTS'),
			'index.php?option=com_almhoster&view=products',
			$vName == 'products'
		);
		
		JSubMenuHelper::addEntry(
			JText::_('COM_ALMHOSTER_SUBMENU_PRICES'),
			'index.php?option=com_almhoster&view=prices',
			$vName == 'prices'
		);
		
		JSubMenuHelper::addEntry(
			JText::_('COM_ALMHOSTER_SUBMENU_BILLING_CYCLES'),
			'index.php?option=com_almhoster&view=billingcycles',
			$vName == 'billingcycles'
		);
		
		

		$document = JFactory::getDocument();
		$document->addStyleDeclaration('.icon-48-almhoster {background-image: url(../media/com_almhoster/images/almhoster-48.png);}');
		$document->addStyleDeclaration('.icon-48-clients {background-image: url(../media/com_almhoster/images/clients-48.png);}');
		$document->addStyleDeclaration('.icon-48-client {background-image: url(../media/com_almhoster/images/client-48.png);}');		
		$document->addStyleDeclaration('.icon-48-tickets {background-image: url(../media/com_almhoster/images/tickets-48.png);}');
		$document->addStyleDeclaration('.icon-48-ticket {background-image: url(../media/com_almhoster/images/ticket-48.png);}');
		$document->addStyleDeclaration('.icon-48-domains {background-image: url(../media/com_almhoster/images/domains-48.png);}');
		$document->addStyleDeclaration('.icon-48-invoices {background-image: url(../media/com_almhoster/images/invoices-48.png);}');
		$document->addStyleDeclaration('.icon-48-orders {background-image: url(../media/com_almhoster/images/orders-48.png);}');
		$document->addStyleDeclaration('.icon-48-configurations {background-image: url(../media/com_almhoster/images/configurations-48.png);}');		
		$document->addStyleDeclaration('.icon-48-servers {background-image: url(../media/com_almhoster/images/servers-48.png);}');	
		$document->addStyleDeclaration('.icon-48-accounts {background-image: url(../media/com_almhoster/images/cpanel-48.png);}');	
		$document->addStyleDeclaration('.icon-48-plans {background-image: url(../media/com_almhoster/images/plans-48.png);}');
		$document->addStyleDeclaration('.icon-48-billing_cycles {background-image: url(../media/com_almhoster/images/billing_cycles-48.png);}');
		$document->addStyleDeclaration('.icon-48-coupons {background-image: url(../media/com_almhoster/images/coupons-48.png);}');
		$document->addStyleDeclaration('.icon-48-products {background-image: url(../media/com_almhoster/images/products-48.png);}');
		$document->addStyleDeclaration('.icon-48-prices {background-image: url(../media/com_almhoster/images/prices-48.png);}');
		$document->addStyleDeclaration('.icon-48-emails {background-image: url(../media/com_almhoster/images/emails-48.png);}');
		
		
		
	}
}
